[BLKTAP]: Kill bogus fast_flush_area
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Fri, 20 Oct 2006 08:24:26 +0000 (09:24 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Fri, 20 Oct 2006 08:24:26 +0000 (09:24 +0100)
The function dispatch_rw_block_io may call fast_flush_area even before
a pending request has been initialised.  This patch deletes that call.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
linux-2.6-xen-sparse/drivers/xen/blktap/blktap.c

index a7e5037d72654e9782db16b9c8741f72c4380746..0adaa7b5d8ac03250c81d9bc8bc77b60275b5d05 100644 (file)
@@ -1128,9 +1128,10 @@ static void dispatch_rw_block_io(blkif_t *blkif,
        int usr_idx = GET_NEXT_REQ(info->idx_map);
        uint16_t mmap_idx = pending_req->mem_idx;
 
-       /*Check we have space on user ring - should never fail*/
-       if(usr_idx == INVALID_REQ) goto fail_flush;
-       
+       /* Check we have space on user ring - should never fail. */
+       if (usr_idx == INVALID_REQ)
+               goto fail_response;
+
        /* Check that number of segments is sane. */
        nseg = req->nr_segments;
        if ( unlikely(nseg == 0) ||